<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#main{
	height:297mm;
	width:210mm;	
	}
	
.thetable{
	margin-top:11mm;
	margin-left:4mm;
	margin-bottom:11mm;
	width:190mm;
	height:275mm;
	
	}
	
.thecell{
	vertical-align:top;
	height:21mm;
	width:38mm;
	overflow:hidden;
	}
.thecelldiv{
	display:block;
	font-size:13px;
	margin-top:3mm
	text-transform:capitalize;
	width:30mm;
	height:15mm;
	/*border: #888 1px solid; */ 
	overflow:hidden;
	font-family:Arial;	
	}
			
</style>
</head>
<body>
<div id = "main">
<table class="thetable" border="0" cellspacing="0" cellpadding="0">
  <?php foreach ($this->printArray as $k => $v){
  	$i = count($v);?>
  <tr>
    <td class="thecell">
    <div class="thecelldiv">
    <?php echo $v[0]?><br/>
    <img src="http://192.168.1.124/sample/sample-gd-1.php?sno=<?php echo $v[0];?>"  border="0"></img>
    </div>
    </td>
    <td class="thecell" >
    <div class="thecelldiv">
    <?php if ($i > 1){?>
    <?php echo $v[1]?><br/>
    <img src="http://192.168.1.124/sample/sample-gd-1.php?sno=<?php echo $v[1];?>"  border="0"></img>
    <?php }?>
    </div>    
    </td>
     <td class="thecell" >
    <div class="thecelldiv">
    <?php if ($i > 2){?>
    <?php echo $v[2]?><br/>
    <img src="http://192.168.1.124/sample/sample-gd-1.php?sno=<?php echo $v[2];?>"  border="0"></img>
    <?php }?>
    </div>    
    </td>
     <td class="thecell" >
    <div class="thecelldiv">
    <?php if ($i > 3){?>
    <?php echo $v[3]?><br/>
    <img src="http://192.168.1.124/sample/sample-gd-1.php?sno=<?php echo $v[3];?>"  border="0"></img>
    <?php }?>
    </div>    
    </td>
     <td class="thecell" >
    <div class="thecelldiv">
    <?php if ($i > 4){?>
    <?php echo $v[4]?><br/>
    <img src="http://192.168.1.124/sample/sample-gd-1.php?sno=<?php echo $v[4];?>"  border="0"></img>
    <?php }?>
    </div>    
    </td>
  </tr>
  <?php }?>
</table>
</div>
</body>
</html>

